package com.mlody.chapter1;

import com.mlody.chapter1.interfaces.FlyNoWay;
import com.mlody.chapter1.interfaces.Quack;

/**
 * Created by tmlod_000 on 2014-07-27.
 */
public class ModelDuck extends Duck {
    public ModelDuck() {
        setQuackBehavior(new Quack());
        setFlyBehavior(new FlyNoWay());
    }

    @Override
    public void display() {
        System.out.println("I am Model Duck");
    }
}
